//--------------------------------------------------------------
//
// Qizhi Zhang 
// ezhung@gmail.com
// http://www.moorwind.com
//
//--------------------------------------------------------------
package reader.events
{
	import __AS3__.vec.Vector;
	
	import flash.events.Event;
	
	import reader.model.vo.MediaVO;

	public class MediaEvent extends Event
	{
		public static const EDIT_MEDIA:String = "openMedia";
		public static const VIEW_MEDIA:String = "viewMedia";
		public static const DELETE_MEDIA:String = "deleteMedia";
		public static const DELETE_MEDIAS:String = "deleteMedias";
		
		public var media:MediaVO;
		public var mediaList:Vector.<MediaVO>;
				
		public function MediaEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false, media:MediaVO = null)
		{
			super(type, bubbles, cancelable);
			if(media) this.media = media;
		}
		
	}
}